#ifndef ACTIVITYITEM_H
#define ACTIVITYITEM_H
#include <QList>
#include <QVariant>

class ActivityItem
{
public:
    ActivityItem(const QList<QVariant> &data, ActivityItem *parentItem = 0);
    ~ActivityItem();

    void appendChild(ActivityItem *child, int pos=0);

    ActivityItem *child(int row);
    int childCount() const;
    int columnCount() const;
    QVariant data(int column) const;
    void setData(const QVariant &data, int column = -1);
    int row() const;
    ActivityItem *parentItem();

private:
    QList<ActivityItem*> m_childItems;
    QList<QVariant> m_itemData;
    ActivityItem *m_parentItem;
};

#endif // ACTIVITYITEM_H
